import { createPinia } from "pinia"
import useHomeStore from "./home"
import type { App } from "vue"

const pinia = createPinia()

const registerStore = (app: App<Element>) => {
  app.use(pinia)

  const homeStore = useHomeStore()
  homeStore.loadLocalCacheAction()
}

export default registerStore
